# 算术运算符和字符串运算符
a = 'Hello'
b = 'Python'
c = a + ' ' + b
print(c)
d = b * 3
print(d)

# 赋值运算符
price = 100
price += 98
print(price)

# 比较运算符
price = 48
if price < 50:
    print('低于商品成本价')

# 逻辑运算符
month = 5
if (month >= 1) and (month <= 12):
    print(month, '是月份值')
else:
    print(month, '不是月份值')

# 成员检测运算符
a = 'Hello, Python!'
if '!' in a:
    print('字符串a包含感叹号')
b = [4.8, 6.8, 2.8, 5.5, 8.8]
if 2.8 in b:
    print('列表b包含数字2.8')
c = {'产品': '笔记本', '包装数量': '单本装', '页数': 60}
if '页数' in c:
    print('字典c包含页数信息')
